<template>
     <div class="shanhetongguo">
                <img src="../../../assets/personal/images/shibai.png">
                <br>
                     <img src="../../../assets/personal/images/chongxin .png" @click="del">            
                <div class="backTo" ><router-link :to="{name:'Mine'}">返回</router-link></div>
            </div>
</template>
<style>
.shanhetongguo{
      width: 100%;
      height: 100%;
      background-color: #ffffff;
  }
   .shanhetongguo img {
      margin: 50px auto;
      width:50%;
  }
</style>
<script>
export default {
   data(){
       return{
           companyId:''
       }
   },
    mounted(){
    },
    methods:{
        del(){
        this.companyId=this.$route.params.id
        this.$http.delete(this.APIURL_PREFIX+'/api/company/'+this.companyId).then((response) => {
              this.$router.push({ name: 'Business_rzxzy'})    
            }).catch(function(err){
              layer.msg("重新入住失败");
              console.log(err)
            });
        }
    }
}
</script>
